package com.qing.design.patterns.visitor.example.user;

import com.qing.design.patterns.visitor.example.visitor.Visitor;

//基础用户信息
public abstract class User {


    public  String name;  //姓名
    public String identity; //身份

    public String clazz; //班级

    public User(String name, String identity, String clazz) {
        this.name = name;
        this.identity = identity;
        this.clazz = clazz;
    }

    //核心访问方法
    public abstract  void accept(Visitor visitor);

}
